home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Crossword
/
Source
/
Inspector.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
1KB
|
76 lines
/*
File Inspector.m
The inspector allows the user to adjust the type of search as well as the various hueristics used to control it.
*/
#import <appkit/appkit.h>
#import <stdio.h>
#import "Inspector.h"
#import "StopWatch.h"
/* ———————————————————————————————————————————————————————————————————————————— */
@implementation Inspector
- (int) getStateType { return [stateType selectedTag]; }
- (BOOL) getOption: (int) i { return [[options findCellWithTag: i] state]; }
- getWatch { return stopWatch; }
- getTimeCell { return time; }
/* ———————————————————————————————————————————————————————————————————————————— */
- init
{
[super init];
color[0] = NX_COLORWHITE;
color[1] = NX_COLORBLACK;
color[2] = NX_COLORBLUE;
color[3] = NX_COLORBLACK;
color[4] = NX_COLORYELLOW;
color[5] = NX_COLORRED;
return self;
}
/* ———————————————————————————————————————————————————————————————————————————— */
- (squareColor) getColor: (int) i
{
squareColor theColor;
theColor.background = color[i * 2];
theColor.text = color[i * 2 + 1];
return theColor;
}
- takeColor: sender
{
color[[sender tag]] = [sender color];
return self;
}
- showTime
{
[time setFloatingPointFormat: NO left: 6 right: 2];
[time setFloatValue: [stopWatch getTime]];
return self;
}
@end